package com.itetchologyandenglish.home.mapper;

import com.itetchologyandenglish.home.enetity.Orders;
import com.itetchologyandenglish.home.enetity.TotalOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TotalMapper {
    Integer getOrderClick(Integer supplyFlag);
    List<TotalOrder> totalOrderByYear(@Param("year")Integer year,@Param("supplyFlag") Integer supplyFlag, @Param("tradeFlag")Integer tradeFlag);

    List<String> totalOrderYears();

    List<String> totalCompanyYears();

    Integer getOrder(Integer supplyFlag);

    Integer getOrderByTrade(Integer tradeFlag);

    Integer getCompany(Integer isvip);

    List<TotalOrder> totalCompanyByDate(@Param("year")Integer year, @Param("isvip")Integer isvip);

    List<Orders> getTopClick(@Param("n")Integer n,@Param("supplyFlag")Integer supplyFlag);
}
